package com.lebang.model.enums;

/**
 * @author Eliohn on 2019/6/13.
 * @version 1.0
 */
public enum TaskEnableResultEnum {
    /**
     *
     */
    SUCCESS(true, "success", "可以执行"),
    FAIL(false, "fail", ""),
    FAIL_NOT_EXITS(false, "null", "任务不存在或已下架"),
    FAIL_TASK_END(false, "null", "任务已经被抢光了!"),
    FAIL_TASK_NUM_LIMIT(false, "limit", "领取失败!完成次数超过限制"),
    FAIL_HAS_TASK_NOT_END(false, "300", "领取失败!你有未完成的任务"),
    FAIL_HAS_TASK(false, "300", "你已经做过这个任务了"),
    FAIL_HAS_LOCK(false, "wait","亲，您已完成同种类型任务，请待系统解锁！" ),
    FAIL_HAS_PULL(false, "null", "该系列任务你已经做过了"),;


    private Boolean result;
    private String status;
    private String msg;

    TaskEnableResultEnum(boolean result, String status, String msg) {
        this.result = result;
        this.status = status;
        this.msg = msg;
    }

    public Boolean getResult() {
        return result;
    }

    public void setResult(Boolean result) {
        this.result = result;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }}
